package com.majie.utils.utils.sign;

import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

/**
 * 签名明文
 */
@JsonInclude(JsonInclude.Include.NON_NULL)    //不包含为空的字段
@JsonPropertyOrder(alphabetic = true)        //字段根据字段排序
public interface SignText {

    /**
     * 默认实现
     */
    default String toText( ) {
        return JSON.toJSONString(this);
    }
}
